package demo.controller;

import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping
public class CookieController {

	@GetMapping("/cookie")
	public @ResponseBody String cookie(
			@CookieValue(value="session_id", defaultValue = "(null)") String sessionId) {
		return "cookie: " + sessionId;
	}
}
